package com.assignwork.vo;
import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.List;

@Data
public class WorkLoadStatisticVO {

    @Excel(name = "日期", orderNum = "1" , width = 15)
    @DateTimeFormat(
            pattern = "yyyy-MM-dd"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @ApiModelProperty(name = "时间")
    private String planDate;


    @ExcelCollection(name = "作业量", orderNum = "2")
    private List<Work> work;
    @ExcelCollection(name = "开头量", orderNum = "3")
    private List<Kt> kt;

    @Data
    public static class Work {
        @Excel(name = "计划", orderNum = "1", type = 1, width = 10,groupName = "散货")
        private BigDecimal planQuantityS;
        @Excel(name = "实际", orderNum = "1", type = 1, width = 10,groupName = "散货")
        private BigDecimal workQuantityS;
        @Excel(name = "计划", orderNum = "1", type = 1, width = 10,groupName = "杂货")
        private BigDecimal planQuantityZ;
        @Excel(name = "实际", orderNum = "1", type = 1, width = 10,groupName = "杂货")
        private BigDecimal workQuantityZ;
        @Excel(name = "计划", orderNum = "1", type = 1, width = 10,groupName = "合计")
        private BigDecimal hjPlan;
        @Excel(name = "实际", orderNum = "1", type = 1, width = 10,groupName = "合计")
        private BigDecimal hjWork;
    }

    @Data
    public static class Kt {
        @Excel(name = "计划", orderNum = "1", type = 1, width = 10,groupName = "散货")
        private BigDecimal planLineCountS;
        @Excel(name = "实际", orderNum = "1", type = 1, width = 10,groupName = "散货")
        private BigDecimal workLineCountS;
        @Excel(name = "计划", orderNum = "1", type = 1, width = 10,groupName = "杂货")
        private BigDecimal planLineCountZ;
        @Excel(name = "实际", orderNum = "1", type = 1, width = 10,groupName = "杂货")
        private BigDecimal workLineCountZ;
        @Excel(name = "计划", orderNum = "1", type = 1, width = 10,groupName = "合计")
        private BigDecimal hjPlanKt;
        @Excel(name = "实际", orderNum = "1", type = 1, width = 10,groupName = "合计")
        private BigDecimal hjWorkKt;
    }
}
